package com.wy.System.WindowCommand;

public abstract class AbstractPayService implements payService {
    @Override
    public void pay(PayRequest payRequest) {
        validateRequest(payRequest);
        doPay(payRequest);
        postPay(payRequest);
    }

    public abstract void doPay(PayRequest payRequest);

    private void postPay(PayRequest payRequest){

    }
    private void validateRequest(PayRequest payRequest){

    }

}
